#include "StdAfx.h"
#include "URLReader.h"

CURLReader::CURLReader(void)
{
	m_FilePathName=TEXT("C:\\url.txt");
}

CURLReader::~CURLReader(void)
{
}


BOOL CURLReader::InitList(CString filename)
{
	CStdioFile file;
	CFileException my_FileException;
	if (!file.Open(filename,CFile::modeRead ,&my_FileException))
	{
		TCHAR szError[1024];
		my_FileException.GetErrorMessage(szError, 1024);
		//::MessageBox(szError);
	}
	CString str;
	while(NULL!=file.ReadString(str.GetBuffer(),100)){
		m_URLlist.AddTail(str);
	}

	return TRUE;

}

